const express = require("express")
const app = express();
const path = require("path");

app.get("/1", (req, res) => {
  const filePath = path.resolve(__dirname, "./02.基础的get请求.html");
  res.sendFile(filePath);
})


app.listen(3000, () => {
  console.log("服务器请求成功 请访问 http://127.0.0.1:3000");
})